#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(int argc,char **argv){
	argv[1]="a.txt";
	argv[2]="b.txt";
	if(argc==3)
{
    char* srcfile=argv[1];
	char* dstfile=argv[2];
	FILE *fp1=fopen(srcfile,"r");
	if(fp1==0)
{
 	printf("file not exist");
  	return -1;
}
	FILE *fp2=fopen(dstfile,"w");
	while(1)
	{
  	char temp=fgetc(fp1);
	if(feof(fp1))
   		break;
	fputc(temp, fp2);
	}
	fclose(fp1);
	fclose(fp2);
}

}
	
	
	
	

